package com.rerun.common.quartz;

/**
 *
 * 任务状态枚举
 *
 * @author dax.
 * @version v1.0
 * @since 2017/10/24 14:33
 */

public enum JobStatusEnum {
    NONE("NONE", "未知"),
    NORMAL("NORMAL", "正常运行"),
    PAUSED("PAUSED", "暂停状态"),
    COMPLETE("COMPLETE", "完成状态"),
    ERROR("ERROR", "错误状态"),
    BLOCKED("BLOCKED", "锁定状态");

    JobStatusEnum(String key, String desc) {
        this.desc = desc;
        this.key = key;
    }

    private String key;
    private String desc;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
